Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

qscintilla: new recipe #25236

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

qscintilla: new recipe #25236

wants to merge 4 commits into from

Conversation

valgur
Copy link
Contributor

@valgur valgur commented Sep 11, 2024

Summary

Changes to recipe: qscintilla/2.14.1

Motivation

QScintilla is a Qt port of the Scintilla text editing component.

https://www.riverbankcomputing.com/software/qscintilla

Source mirror: https://github.com/brCreate/QScintilla

Packaging status

Details

I initially tried to make the recipe work with the src/scintilla.pro qmake file, but I kept running into issues with the build flags (such as the compiler executable path) not being respected. At the same time, propagating the standard Conan build flags and profile details through an ad-hoc qmake generator was not much simpler or shorter than rewriting it as a CMake project, so I went with the latter option.


@conan-center-bot

This comment has been minimized.

@valgur
Copy link
Contributor Author

valgur commented Sep 13, 2024

Here's a failed attempt at getting the project to build with the original qmake-based build system: https://github.com/valgur/conan-center-index/blob/new/qscinitilla-qmake/recipes/qscintilla/all/conanfile.py#L69-L134

@conan-center-bot

This comment has been minimized.

@conan-center-bot
Copy link
Collaborator

Conan v1 pipeline ❌

Failure in build 4 (4413a5c69011ec99f115adb3c3c6abc3596163bf):

  • qscintilla/2.14.1:
    CI failed to create some packages (All logs)

    Logs for packageID 20e7462f718928d28652f200894e0239901076c3:
    [settings]
    arch=x86_64
    build_type=Release
    compiler=gcc
    compiler.libcxx=libstdc++11
    compiler.version=9
    os=Linux
    [options]
    qscintilla:shared=False
    
    [...]
                     from /home/conan/workspace/prod-v1/bsr/95440/ebcad/.conan/data/qt/6.7.1/_/_/package/c6f9811941e2715cb33edb4bc2b1e217a1780d85/include/QtWidgets/qabstractscrollarea.h:8,
                     from /home/conan/workspace/prod-v1/bsr/95440/ebcad/.conan/data/qt/6.7.1/_/_/package/c6f9811941e2715cb33edb4bc2b1e217a1780d85/include/QtWidgets/QAbstractScrollArea:1,
                     from /home/conan/workspace/prod-v1/bsr/95440/ebcad/.conan/data/qscintilla/2.14.1/_/_/build/20e7462f718928d28652f200894e0239901076c3/src/src/Qsci/qsciscintillabase.h:27,
                     from /home/conan/workspace/prod-v1/bsr/95440/ebcad/.conan/data/qscintilla/2.14.1/_/_/build/20e7462f718928d28652f200894e0239901076c3/src/src/Qsci/qscicommand.h:27,
                     from /home/conan/workspace/prod-v1/bsr/95440/ebcad/.conan/data/qscintilla/2.14.1/_/_/build/20e7462f718928d28652f200894e0239901076c3/src/src/Qsci/qsciscintilla.h:33,
                     from /home/conan/workspace/prod-v1/bsr/95440/ebcad/.conan/data/qscintilla/2.14.1/_/_/build/20e7462f718928d28652f200894e0239901076c3/build/Release/QScintilla_autogen/ISEGTZBSTW/../../../../src/src/Qsci/qsciabstractapis.h:29,
                     from /home/conan/workspace/prod-v1/bsr/95440/ebcad/.conan/data/qscintilla/2.14.1/_/_/build/20e7462f718928d28652f200894e0239901076c3/build/Release/QScintilla_autogen/ISEGTZBSTW/moc_qsciabstractapis.cpp:9,
                     from /home/conan/workspace/prod-v1/bsr/95440/ebcad/.conan/data/qscintilla/2.14.1/_/_/build/20e7462f718928d28652f200894e0239901076c3/build/Release/QScintilla_autogen/mocs_compilation.cpp:2:
    /home/conan/workspace/prod-v1/bsr/95440/ebcad/.conan/data/qt/6.7.1/_/_/package/c6f9811941e2715cb33edb4bc2b1e217a1780d85/include/QtCore/qvariant.h: In instantiation of ‘T qvariant_cast(QVariant&&) [with T = QSize]’:
    /home/conan/workspace/prod-v1/bsr/95440/ebcad/.conan/data/qt/6.7.1/_/_/package/c6f9811941e2715cb33edb4bc2b1e217a1780d85/include/QtWidgets/qlistwidget.h:109:61:   required from here
    /home/conan/workspace/prod-v1/bsr/95440/ebcad/.conan/data/qt/6.7.1/_/_/package/c6f9811941e2715cb33edb4bc2b1e217a1780d85/include/QtCore/qvariant.h:784:16: error: could not convert ‘v’ from ‘QVariant’ to ‘QSize’
      784 |         return v;
          |                ^
          |                |
          |                QVariant
    /home/conan/workspace/prod-v1/bsr/95440/ebcad/.conan/data/qt/6.7.1/_/_/package/c6f9811941e2715cb33edb4bc2b1e217a1780d85/include/QtCore/qvariant.h:788:70: error: no matching function for call to ‘QMetaType::<expression error>()’
      788 |         QMetaType nonConstTargetType = QMetaType::fromType<nonConstT>();
          |                                        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~
    In file included from /home/conan/workspace/prod-v1/bsr/95440/ebcad/.conan/data/qt/6.7.1/_/_/package/c6f9811941e2715cb33edb4bc2b1e217a1780d85/include/QtCore/qobject.h:18,
                     from /home/conan/workspace/prod-v1/bsr/95440/ebcad/.conan/data/qt/6.7.1/_/_/package/c6f9811941e2715cb33edb4bc2b1e217a1780d85/include/QtCore/QObject:1,
                     from /home/conan/workspace/prod-v1/bsr/95440/ebcad/.conan/data/qscintilla/2.14.1/_/_/build/20e7462f718928d28652f200894e0239901076c3/build/Release/QScintilla_autogen/ISEGTZBSTW/../../../../src/src/Qsci/qsciabstractapis.h:25,
                     from /home/conan/workspace/prod-v1/bsr/95440/ebcad/.conan/data/qscintilla/2.14.1/_/_/build/20e7462f718928d28652f200894e0239901076c3/build/Release/QScintilla_autogen/ISEGTZBSTW/moc_qsciabstractapis.cpp:9,
                     from /home/conan/workspace/prod-v1/bsr/95440/ebcad/.conan/data/qscintilla/2.14.1/_/_/build/20e7462f718928d28652f200894e0239901076c3/build/Release/QScintilla_autogen/mocs_compilation.cpp:2:
    /home/conan/workspace/prod-v1/bsr/95440/ebcad/.conan/data/qt/6.7.1/_/_/package/c6f9811941e2715cb33edb4bc2b1e217a1780d85/include/QtCore/qmetatype.h:2615:21: note: candidate: ‘template<class T> static constexpr QMetaType QMetaType::fromType()’
     2615 | constexpr QMetaType QMetaType::fromType()
          |                     ^~~~~~~~~
    /home/conan/workspace/prod-v1/bsr/95440/ebcad/.conan/data/qt/6.7.1/_/_/package/c6f9811941e2715cb33edb4bc2b1e217a1780d85/include/QtCore/qmetatype.h:2615:21: note:   template argument deduction/substitution failed:
    make[2]: *** [CMakeFiles/QScintilla.dir/build.make:82: CMakeFiles/QScintilla.dir/QScintilla_autogen/mocs_compilation.cpp.o] Error 1
    make[2]: *** Waiting for unfinished jobs....
    make[1]: *** [CMakeFiles/Makefile2:96: CMakeFiles/QScintilla.dir/all] Error 2
    make: *** [Makefile:149: all] Error 2
    WARN: **************************************************
    WARN: *** Conan 1 is legacy and on a deprecation path **
    WARN: *********** Please upgrade to Conan 2 ************
    WARN: **************************************************
    WARN: openssl/3.3.1: requirement zlib/[>=1.2.11 <2] overridden by qt/6.7.1 to zlib/1.3.1 
    WARN: pcre2/10.42: requirement zlib/[>=1.2.11 <2] overridden by qt/6.7.1 to zlib/1.3.1 
    WARN: freetype/2.13.2: requirement libpng/[>=1.6 <2] overridden by qt/6.7.1 to libpng/1.6.43 
    WARN: freetype/2.13.2: requirement zlib/[>=1.2.10 <2] overridden by qt/6.7.1 to zlib/1.3.1 
    WARN: libpng/1.6.43: requirement zlib/[>=1.2.11 <2] overridden by freetype/2.13.2 to zlib/1.3.1 
    WARN: glib/2.78.3: requirement zlib/[>=1.2.11 <2] overridden by harfbuzz/8.3.0 to zlib/1.3.1 
    WARN: libxml2/2.12.7: requirement zlib/[>=1.2.11 <2] overridden by xkbcommon/1.5.0 to zlib/1.3.1 
    WARN: wayland/1.22.0: requirement libxml2/[>=2.12.5 <3] overridden by xkbcommon/1.5.0 to libxml2/2.12.7 
    qscintilla/2.14.1: WARN: Using the new toolchains and generators without specifying a build profile (e.g: -pr:b=default) is discouraged and might cause failures and unexpected behavior
    qscintilla/2.14.1: WARN: Using the new toolchains and generators without specifying a build profile (e.g: -pr:b=default) is discouraged and might cause failures and unexpected behavior
    qscintilla/2.14.1: ERROR: Package '20e7462f718928d28652f200894e0239901076c3' build failed
    qscintilla/2.14.1: WARN: Build folder /home/conan/workspace/prod-v1/bsr/95440/ebcad/.conan/data/qscintilla/2.14.1/_/_/build/20e7462f718928d28652f200894e0239901076c3/build/Release
    ERROR: qscintilla/2.14.1: Error in build() method, line 79
    	cmake.build()
    	ConanException: Error 2 while executing cmake --build "/home/conan/workspace/prod-v1/bsr/95440/ebcad/.conan/data/qscintilla/2.14.1/_/_/build/20e7462f718928d28652f200894e0239901076c3/build/Release" '--' '-j3'
    

Note: To save resources, CI tries to finish as soon as an error is found. For this reason you might find that not all the references have been launched or not all the configurations for a given reference. Also, take into account that we cannot guarantee the order of execution as it depends on CI workload and workers availability.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants